﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using GrayParrot.ServiceProcess;

namespace TestWindowsService
{
    public partial class Service1 : ReliableService<Service1>
    {
        public Service1()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            base.OnStart(args);
        }

        protected override void OnStop()
        {
            base.OnStop();
        }

        protected override void Worker()
        {
            Thread.Sleep(2000);
        }

        protected override void DisposeWorker()
        {
            Console.WriteLine("ciao");
        }
    }
}
